<?

$query="SELECT sd_news FROM asombre_destin WHERE sd_id=1";
$resultat=mysql_query($query);
$tmp=mysql_fetch_array($resultat);
$tmp2=EXPLODE("/",$tmp[0]);


     

FOREACH($tmp2 as $tmp3){
IF ($userid==$tmp3){ $validation_news=1;}
}//Fin du foreach
IF ($validation_news!=1){
EXIT;
}

?>

<form name="form1" method="post" action="accueil.php">
  <div align="center"> 
    <p><strong><u><font size="2"><br>
      <font color="#000000">Titre</font></font></u></strong><br>
      <input name="titre" type="text" id="titre" size="30" maxlength="50">
      <br>
      <br>
      <strong><u><font color="#000000" size="2">Sous titre</font></u></strong><br>
      <input name="stitre" type="text" id="stitre" size="30" maxlength="50">
    </p>
    <p><strong><u><font color="#000000" size="2">Texte</font></u></strong><br>
      <textarea name="txt" cols="50" rows="10" id="txt"><?  echo $description;?></textarea>
      <br>
      <br>
      <?


echo"<input name=\"$SID\" type=\"hidden\" id=\"$SID\" value=\"$SID\">";
echo"<input name=\"mode\" type=\"hidden\" id=\"mode\" value=\"send_news\">";
echo"<input name=\"p\" type=\"hidden\" id=\"p\" value=\"admin_test\">";
echo"<input name=\"userid\" type=\"hidden\" id=\"userid\" value=\"$userid\">"; 



	?>
      <input type="submit" name="Submit" value="Envoyer">
    </p>
  </div>
</form>
</body>
</html>
